import { createStore,applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from '@/reducers';
import promise from 'redux-promise-middleware';
const configStore = (preload) => {
  return createStore(
    rootReducer,
    preload,
    applyMiddleware(thunk,promise())
  )
}
export default configStore;